//
//  FreeTimeCell.m
//  XDBaseFrameWork
//
//  Created by XD-XY on 10/3/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "FreeTimeCell.h"

@implementation FreeTimeCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self makeViews];
    }
    return self;
}

-(void)makeViews
{
    self.bgView = [UIView initViewRect:CGRectMake(0, 0, 76, 45) andBackGroudColor:UIColorFromRGB(0xd8d8d8)];
    
    self.hourLB = [UILabel initLabelText:@"7" andRect:CGRectMake(0, 0, 76, 30) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:14] andTextColor:[UIColor blackColor] andTextAlignment:NSTextAlignmentCenter];
    
    self.statusLB = [UILabel initLabelText:@"预约" andRect:CGRectMake(0, 20, 76, 25) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:13] andTextColor:[UIColor blackColor] andTextAlignment:NSTextAlignmentCenter];
    
    [self addSubview:_bgView];
    [self addSubview:_hourLB];
    [self addSubview:_statusLB];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
